
{extend name='admin@public/content'}
{block name="content"}
<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">商家账号</label>
        <div class="layui-input-inline">
            <input name="username" value="{$Think.get.username|default=''}" placeholder="输入账号" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">时 间</label>
        <div class="layui-input-inline">
            <input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="关注时间" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>历史资金总额</th>
            <th class='text-left nowrap'>当前页资金总额</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td class='text-left nowrap'>
                {$list.allmoney}
            </td>
            <td class='text-left nowrap'>
                {$list.newmoney}
            </td>
        </tr>
        </tbody>
    </table>
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>微信昵称</th>
            <th class='text-left nowrap'>用户名</th>
            <th class='text-left nowrap'>流水类型</th>
            <th class='text-left nowrap'>交易备注</th>
            <th class='text-left nowrap'>金额</th>
            <th class='text-left nowrap'>交易时间</th>
            <th class='text-left nowrap'>关联订单ID</th>
        </tr>
        </thead>
        <tbody>
        {foreach($list['list'] as $key=>$value)}
        <tr>
            <td class='text-left nowrap'>
                {$value.nickname|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.username|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.typeName|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.name|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.money|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                {$value.addtime|default='暂无'}
            </td>
            <td class='text-left nowrap'>
                <a data-open='{:url("admin/adminorder/index")}?sn={$value.sn | default=""}'>{$value.sn|default='暂无'}</a>
            </td>
            <td class='text-left nowrap'>

            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($list.page)}<p>{$list.page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}
{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>
<!--引入标签设置-->
{/block}